<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>演员详细列表</title>
    <link href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <div class="text" style=" text-align:center;"><h1>演员详细列表</h1></div>
    <a>学号：1604220535</a>
    <br>姓名：杨友奇</br>
    <div class="row" style="margin-top: 10px">
        <div class="col-2">
            <div class="list-group">
                <a class="list-group-item list-group-item-action active" th:href="@{/movie/index}">电影管理</a>
                <a class="list-group-item list-group-item-action" th:href="@{/actor/index}">演员管理</a>
            </div>
        </div>

        <div class="col">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>#</th>
                    <th>名字</th>
                    <th>性别</th>
                    <th>生日</th>
                    <th>归属电影</th>
                </tr>
                </thead>
                <tbody>

                <tr th:each="actor,actorStat : ${info}">
                    <td th:text="${actorStat.index + 1}"></td>
                    <td th:text="${info.name}"></td>
                    <td th:text="${info.sex}"></td>
                    <td th:text="${info.born}? ${#dates.format(info.born,'yyyy-MM-dd')} :''"></td>
                    <td th:text="${info.movie.name}"></td>
                </tr>
                </tbody>

            </table>
        </div>
    </div>
</div>

</body>
</html>